package com.test.ws.s1.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan("com.test.ws.s1.service")/// 链接业务层service
@ComponentScan("com.test.ws.s1.utils")/// 链接业务层service

@PropertySource({"classpath:jdbc.properties","classpath:file.properties"})
@MapperScan("com.test.ws.s1.mapper")
@Import({JdbcConfig.class,MybatisConfig.class})
@EnableTransactionManagement //开启 Spring 事务管理
public class SpringConfig {

}
